package com.meixiang.activity.account.storesmanager;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

import com.meixiang.R;
import com.meixiang.entity.training.TrainingDetails;
import com.meixiang.main.BaseActivity;
import com.meixiang.main.MainActivity;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by ydc on 2016/9/22.
 */

public class ApplymembershipResultActivity extends BaseActivity {




    @Bind(R.id.training_detail_bt_confirm)
    Button training_detail_bt_confirm;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_storesmanage_applymembershipresult_layout);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
/*        setTitle("上海唯美度五角厂店", "", "",0, new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                if (v.equals(titleView.getLeftTitleView())) {
                    ApplymembershipResultActivity.this.finish();
                }
            }
        });*/
    }



    @Override
    protected void initView() {

    }

    @Override
    protected void setData() {
        getData();

    }
    private void getData(){
       /* HttpUtils.isAnalog=false;
        String url= Config.TRAINING_FOR_GET_DETAILS;
        HttpParams params=new HttpParams();
        params.put("goodsId",goodsId);
//        JsonBean resultData = VirtualDataHelper.getResultData(context, "floor/goodsDetail.json");
        HttpUtils.post(url, params, new HttpCallBack(this) {
            @Override
            public void onSucceed(JSONObject result, String code, String message) {
                TrainingDetails trainingDetails= AbJsonUtil.fromJson(result.toString(),TrainingDetails.class);
                trainingDetail=trainingDetails;
                setDetail(trainingDetails);
            }

            @Override
            public void onError(String code, String message) {
                Tool.showTextToast(context,message);
            }
        });*/
//        TrainingDetails trainingDetails= AbJsonUtil.fromJson(resultData.getResult(),TrainingDetails.class);
//        setDetail(trainingDetails);
    }
    private void setDetail(TrainingDetails trainingDetails){


    }



    @OnClick(R.id.training_detail_bt_confirm)
    public void onClick(View v) {

        switch (v.getId()){
            case  R.id.training_detail_bt_confirm:
                Intent intent=new Intent(ApplymembershipResultActivity.this,MainActivity.class);
                startActivity(intent);
                finish();
                break;
        }
    }
}
